<template>
	<view :style="{'background-color': fenggeyanse =='light'? '#fff4f4':'#0d0d0d'}">
		<!-- #ifdef MP -->
		<u-gap height="60" :bgColor="fenggeyanse =='light'? '#fff4f4':'#0d0d0d'"></u-gap>
		<!-- #endif -->
		<view class="d-gao-250" :style="{'background-color': fenggeyanse =='light'? '#fff4f4':'#0d0d0d'}">
        
		<u-grid
			  :border="false"
			  col="4"
			  @click="click"
			  
		>
			<u-grid-item >
				<block v-if="bugkaiguan==1">
					<text class="grid-text d-xia-30" ></text>
					<u-icon
						  name="checkmark"
						  :size="22"
						  color="#0055ff"
						  @click="bug"
					></u-icon>
					<text  class="grid-text" style="color: #0055ff;" @click="bug">BUG帖</text>
				</block>
				<block v-else>
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  name="error-circle"
						  :size="22"
						  @click="bug"
					></u-icon>
					<text class="grid-text " :style="{'color': fenggeyanse =='light'? '#0d0d0d':'#fff4f4'}" @click="bug">BUG帖</text>
				</block>
			</u-grid-item>
			<u-grid-item >
				<block v-if="xuqiukaiguan==1">
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  name="checkmark"
						  :size="22"
						  color="#0055ff"
						  @click="xuqiu"
					></u-icon>
					<text class="grid-text" style="color: #0055ff;" @click="xuqiu">进度帖</text>
				</block>
				<block v-else>
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  name="clock"
						  :size="22"
						  @click="xuqiu"
					></u-icon>
					<text class="grid-text " @click="xuqiu" :style="{'color': fenggeyanse =='light'? '#0d0d0d':'#fff4f4'}" >进度帖</text>
				</block>
			</u-grid-item>
			<u-grid-item >
				<block v-if="quanzhiding==1">
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  color="#0055ff"
						  name="checkmark"
						  :size="22"
						  @click="quanzhidingdata"
					></u-icon>
					<text class="grid-text " style="color: #0055ff;" @click="quanzhidingdata">圈子置顶</text>
				</block>
				<block v-else>
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  name="arrow-upward"
						  :size="22"
						  @click="quanzhidingdata"
					></u-icon>
					<text class="grid-text " @click="quanzhidingdata" :style="{'color': fenggeyanse =='light'? '#0d0d0d':'#fff4f4'}" >圈子置顶</text>
				</block>
			</u-grid-item>
			<u-grid-item >
				<block v-if="shouyetuijian==1">
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  color="#0055ff"
						  name="checkmark"
						  :size="22"
						  @click="quanshouyedata"
					></u-icon>
					<text class="grid-text " @click="quanshouyedata" style="color: #0055ff;" >首页置顶</text>
				</block>
				<block v-else>
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  
						  name="arrow-upward"
						  :size="22"
						  @click="quanshouyedata"
					></u-icon>
					<text class="grid-text " @click="quanshouyedata" :style="{'color': fenggeyanse =='light'? '#0d0d0d':'#fff4f4'}" >首页置顶</text>
				</block>
			</u-grid-item>
			<u-grid-item >
				<block v-if="tiejinghua==1">
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  color="#0055ff"
						  name="checkmark"
						  :size="22"
						  @click="quanjinghuadata"
					></u-icon>
					<text class="grid-text "  style="color: #0055ff;" @click="quanjinghuadata">精华帖</text>
				</block>
				<block v-else>
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  name="star"
						  :size="22"
						  @click="quanjinghuadata"
					></u-icon>
					<text class="grid-text " @click="quanjinghuadata" :style="{'color': fenggeyanse =='light'? '#0d0d0d':'#fff4f4'}" >精华帖</text>
				</block>
			</u-grid-item>
			<u-grid-item >
				<block v-if="quanzhanqzzd==1">
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  color="#0055ff"
						  name="checkmark"
						  :size="22"
						  @click="quanzhanzhidingdata"
					></u-icon>
					<text class="grid-text" style="color: #0055ff;" @click="quanzhanzhidingdata">全站推荐</text>
				</block>
				<block v-else>
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  
						  name="arrow-up-fill"
						  :size="22"
						  @click="quanzhanzhidingdata"
					></u-icon>
					<text class="grid-text " @click="quanzhanzhidingdata" :style="{'color': fenggeyanse =='light'? '#0d0d0d':'#fff4f4'}" >全站推荐</text>
				</block>
			</u-grid-item>
			<u-grid-item >
				
				<block v-if="shenhe == 1">
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  color="#0055ff"
						  name="checkbox-mark"
						  :size="22"
						  @click="shenhequerren"
					></u-icon>
					<text class="grid-text " style="color: #0055ff;" @click="shenhequerren">已经核对</text>
				</block>
				<block v-else>
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  
						  name="checkbox-mark"
						  :size="22"
						  @click="shenhequerren"
					></u-icon>
					<text class="grid-text " @click="shenhequerren" :style="{'color': fenggeyanse =='light'? '#0d0d0d':'#fff4f4'}" >已经核对</text>
				</block>
			</u-grid-item>
			<!--u-grid-item >
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  
						  name="edit-pen-fill"
						  :size="22"
						  @click="bianjidata"
					></u-icon>
					<text class="grid-text " @click="bianjidata">编辑帖子</text>
			</u-grid-item-->
			<u-grid-item >
					<text class="grid-text d-xia-30"></text>
					<u-icon
						  
						  name="trash"
						  :size="22"
						  @click="shanchu"
					></u-icon>
					<text class="grid-text " @click="shanchu">删除帖子</text>
			</u-grid-item>
		  </u-grid>
		  
		</view>
		
	</view>
</template>

<script>
	export default{
		props:{

			xuqiukaiguan:{
				type: [Number, String],
				default:''
			},
			bugkaiguan:{
				type: [Number, String],
				default:''
			},
			quanzhiding:{
				type: [Number, String],
				default:''
			},
			tiejinghua:{
				type: [Number, String],
				default:''
			},
			shouyetuijian:{
				type: [Number, String],
				default:''
			},
			quanzhanqzzd:{
				type: [Number, String],
				default:''
			},
			shenhe:{
				type: [Number, String],
				default:''
			},
			fenggeyanse: {
				type: [String, Number],
				default: ''
			}
		},
		data(){
			return {
				
			}
		},
		methods:{

			shezhiclose(){
				this.$emit('shezhiclose')
			},
			click(e){
				console.log('bug',e)
			},
			inxuqiu(){
				var duixin = this;
				uni.showModal({
					title: "确认设置为进度帖",
					//content: '请先登录',
					confirmText: '确认',
					success: function(res) {
						if (res.confirm) {
							duixin.xuqiu();
						}
					}
				});
			},
			bug(){
				//console.log('bug')
				this.$emit('bug')
			},
			xuqiu(){
				this.$emit('xuqiu')
			},
			quanzhidingdata(){
				this.$emit('quanzhidingdata')
			},
			quanshouyedata(){
				this.$emit('quanshouyedata')
			},
			quanjinghuadata(){
				this.$emit('quanjinghuadata')
			},
			quanzhanzhidingdata(){
				this.$emit('quanzhanzhidingdata')
			},
			shenhequerren(){
				this.$emit('shenhequerren')
			},
			shanchu(){
				this.$emit('shanchu')
			},
			bianjidata(){
				this.$emit('bianjidata')
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>
